.app-detail.card
  .card-header
    h3.card-title
      = app_icon(@release, class: 'app-icon img-circle img-bordered-sm')
      .app-name
        = @release.name || @release.app_name
        .app-identifier
          = @release.bundle_id
  .card-body
    ul.app-metadata
      - if @release.name.present?
        li title="#{t('releases.show.name')}"
          i.fas.fa-list-ul
          - if guest_mode_or_signed_in?
            = link_to @release.app_name, friendly_channel_overview_path(@release.channel)
          - else
            = @release.app_name
      li title="#{t('releases.show.version')}"
        i.fab.fa-gg
        = @release.version
      li title="#{t('releases.show.device_type')}"
        = device_icon(@release.platform)
        = @release.device_type
      li title="#{t('releases.show.release_version')}"
        i.fas.fa-server
        = "#{@release.release_version} (#{@release.build_version})"
      - if @release.release_type.present?
        li title="#{t('releases.show.release_type')}"
          i.fas.fa-cubes
          = release_type_url(@release)
      - if @release.file.present?
        li title="#{t('releases.show.filesize')}"
          i.fas.fa-weight
          = " #{number_to_human_size(@release.file.size)}"
      li title="#{t('releases.show.uploaded_at')}"
        i.fas.fa-calendar
        = time_ago_in_words(@release.created_at)
      - if @release.branch.present?
        li title="#{t('releases.show.git_branch')}"
          i.fas.fa-code-branch
          = git_branch_url(@release)
      - if @release.git_commit.present?
        li title="#{t('releases.show.git_commit')}"
          i.fab.fa-git-alt
          = git_commit_url(@release.channel.git_url, @release.git_commit)
      - @release.custom_fields.each do |field|
        li title="#{field['name']}"
          i class="#{field['icon'] || 'fas fa-hashtag'}"
          = field['value']
      li title="#{t('releases.show.source')}"
        i.fas.fa-compass
        - if @release.ci_url.blank?
          = t("releases.sources.#{@release.source.downcase}", default: @release.source)
        - else
          = link_to @release.source, @release.ci_url
      - if @release.metadata.present? && guest_mode_or_signed_in?
        li title="#{t('releases.show.metadata')}"
          i.fas.fa-layer-group
          = link_to t('releases.show.teardown_meatdata'), teardown_path(@release.metadata)

    == render 'releases/body/install_app'